<?php
require dirname(__FILE__) . '/../../../../auto_load.php';
class PdoSqliteEngineTest extends PHPUnit_Framework_TestCase
{
	public function testQuery()
	{
		$db_config = ConfigParser::get('db','db_servers[\'sqlite\']');
		$c = new PdoSqliteEngine($db_config);
		$sql = 'INSERT INTO dtd (`value`) VALUES("html5")';
		$result = $c->query($sql);
		$result->setFetchMode(PDO::FETCH_ASSOC);
		$fetch_result = $result->fetchAll();
		var_dump($fetch_result);
	}
}
?>
